<template>
  <div>
      <xinwenmb :arrData="shehuiContentArr"></xinwenmb>
  </div>
</template>

<script>
import xinwenmb from '@/components/xinwenMB'
export default {
    data() {
        return{
            shehuiContentArr:[],
            dataStr :'junshi'
        }
    },
    components: {
        xinwenmb
    },
    mounted(){
            //http://v.juhe.cn/toutiao/index?type=top&key=6dae471a56835ff78747237d31b52c96
            //类型,,top(头条，默认),shehui(社会),guonei(国内),guoji(国际),yule(娱乐),tiyu(体育)junshi(军事),keji(科技),caijing(财经),shishang(时尚)
        this.getSwiperImg({type: this.dataStr,key:'6dae471a56835ff78747237d31b52c96'})
    },
    methods:{
        getSwiperImg(data){
            this.$axios.post('/api','/toutiao/index',data).then(res=>{
                this.shehuiContentArr = res.result.data
            })
        }
    }

}
</script>

<style>

</style>